package com.xiguaji.boot.data.rdb.aggregate;

import lombok.Data;
import org.springframework.data.annotation.Id;

@Data
public class Aggregate {
    @Id
    private long id;
    private long createTime;
    private long updateTime;
    private String createBy;
    private String updateBy;

    public void generator(long currentTimeSecond) {
        this.setCreateTime(currentTimeSecond);
    }
}
